package com.ccc.influxdb.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 排序参数
 *
 * @author superC
 * @version 2.0.0
 * @date 2023/3/7
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Builder
public class SortParam {

    /**
     * 是否开启排序
     */
    private boolean sort = false;

    /**
     * 排序字段，可为空，多个用逗号（,）相隔
     */
    private String sortField;

    /**
     * true 降序 ；false 升序
     */
    private boolean descFlag = false;

}